package org.itboys.core.util;

/**
 * 作者：jiangxiong
 * 日期：2016年4月6日
 * 联系方式 ：empty90911@126.com
 * 描述：用户昵称和LOGO生成器生成器
 */
public class NameUtil {
/*	public static String [] nickNameStroe ={
		"派大星","海绵宝宝","熊大","熊二","光头强","维尼熊","七个小矮人","史努比","汤姆和杰瑞","灰太狼","红太郎","喜羊羊",
		"黑猫警长","舒克和贝塔","加菲猫 ","蜡笔小新","机器猫 ","流氓兔 ","阿童木","匹诺曹","兔八哥 "};*/
	//logo实际存放路径。一个41张。

	public static String  defaultLogo ="/upload/logo/logo";


	/**
	 * 随机用户昵称
	 * @return
	 */
	public static String getRandomName(){
        	//Integer length= nickNameStroe.length;
        	java.util.Random random=new java.util.Random();// 定义随机类
        //	return nickNameStroe[random.nextInt(100)];// 
        	return "用户-"+random.nextInt(10000);//
        	
        }

	/**
	 * 随机用户头像
 	 * @return
	 */
	public static String getRandomLogo(){
        	java.util.Random random=new java.util.Random();// 定义随机类
        	return defaultLogo+random.nextInt(41)+".jpg";//
        	
        }
  
}
